import request from "@/utils/request";

// 查询hotelWayDiscount列表
export function listHotelWayDiscount(query) {
  return request({
    url: "/hotelWayDiscount/list",
    method: "get",
    params: query,
  });
}

// 分页查询hotelWayDiscount列表
export function listHotelWayDiscountByPage(query) {
  return request({
    url: "/hotelWayDiscount/page",
    method: "get",
    params: query,
  });
}

// 查询hotelWayDiscount
export function getHotelWayDiscount(id) {
  return request({
    url: "/hotelWayDiscount/" + id,
    method: "get",
  });
}

// 新增hotelWayDiscount
export function addHotelWayDiscount(data) {
  return request({
    url: "/hotelWayDiscount",
    method: "post",
    data: data,
  });
}

// 修改hotelWayDiscount
export function updateHotelWayDiscount(data) {
  return request({
    url: "/hotelWayDiscount",
    method: "put",
    data: data,
  });
}

// 删除hotelWayDiscount
export function deleteHotelWayDiscount(id) {
  return request({
    url: "/hotelWayDiscount/delete/" + id,
    method: "delete",
  });
}
